<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    body {
      margin: 0;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      background-color: #f0f0f0;
    }

    #game-container {
      position: relative;
      width: 300px;
      height: 500px;
      overflow: hidden;
      border: 1px solid #ccc;
    }

    #ball {
      position: absolute;
      width: 20px;
      height: 20px;
      background-color: #f955de;
      border-radius: 10%;
      transform-origin: 50% 50%;
    }
  </style>
</head>
<body>
  <div id="game-container">
    <div id="ball"></div>
  </div>

  <script>
    document.addEventListener("DOMContentLoaded", function() {
      const gameContainer = document.getElementById("game-container");
      const ball = document.getElementById("ball");

      let rotation = 0;

      function update() {
        rotation += 5; // Adjust the rotation speed as needed
        ball.style.transform = `rotate(${rotation}deg)`;
        requestAnimationFrame(update);
      }

      update();
    });
  </script>
</body>
</html>
